<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建试卷 - 智慧题库</title>
    <link href="../assets/css/tailwind.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="font-inter bg-gray-50 min-h-screen flex flex-col bg-education">
    <!-- 背景装饰元素 -->
    <div class="absolute inset-0 overflow-hidden -z-10">
        <div class="absolute top-10 left-10 w-40 h-40 rounded-full bg-primary/10 animate-float">
            <div class="w-full h-full flex items-center justify-center text-primary/20 text-6xl education-icon">
                <i class="fa fa-book"></i>
            </div>
        </div>
        <div class="absolute bottom-20 right-20 w-60 h-60 rounded-full bg-secondary/10 animate-float" style="animation-delay: -2s">
            <div class="w-full h-full flex items-center justify-center text-secondary/20 text-7xl education-icon">
                <i class="fa fa-graduation-cap"></i>
            </div>
        </div>
        <div class="absolute top-1/3 right-1/4 w-32 h-32 rounded-full bg-accent/10 animate-float" style="animation-delay: -4s">
            <div class="w-full h-full flex items-center justify-center text-accent/20 text-5xl education-icon">
                <i class="fa fa-lightbulb-o"></i>
            </div>
        </div>
        <div class="absolute bottom-1/3 left-1/3 w-28 h-28 rounded-full bg-primary/10 animate-float" style="animation-delay: -1s">
            <div class="w-full h-full flex items-center justify-center text-primary/20 text-4xl education-icon">
                <i class="fa fa-pencil-square-o"></i>
            </div>
        </div>
    </div>

    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white/90 backdrop-blur-sm shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center text-primary">
                    <i class="fa fa-question-circle"></i>
                </div>
                <h1 class="text-xl font-bold text-dark ml-0 md:ml-[-2rem]">智慧题库管理系统</h1>
            </div>
            
            <!-- 顶部导航 -->
            <div class="hidden md:flex items-center space-x-2">
                <a href="AdminDashboard.html" class="nav-item">
                    <i class="fa fa-home mr-2"></i> 控制面板
                </a>
                <a href="QuestionManagement.html" class="nav-item">
                    <i class="fa fa-book mr-2"></i> 题库管理
                </a>
                <a href="ExamManagement.html" class="nav-item active">
                    <i class="fa fa-graduation-cap mr-2"></i> 考试管理
                </a>
                <a href="TextbookVersionList.html" class="nav-item">
                    <i class="fa fa-archive mr-2"></i> 教材管理
                </a>
                <a href="StatisticsAnalysis.html" class="nav-item">
                    <i class="fa fa-bar-chart mr-2"></i> 数据分析
                </a>
                <a href="SystemSettings.html" class="nav-item">
                    <i class="fa fa-cog mr-2"></i> 系统设置
                </a>
            </div>
            
            <div class="flex items-center space-x-4">
                <button class="p-2 text-muted hover:text-primary transition-colors relative">
                    <i class="fa fa-bell"></i>
                    <span class="absolute top-1 right-1 w-2 h-2 bg-accent rounded-full"></span>
                </button>
                <div class="flex items-center space-x-2">
                    <img src="https://picsum.photos/id/64/40/40" alt="用户头像" class="w-8 h-8 rounded-full object-cover border-2 border-primary/20">
                    <span class="hidden md:inline text-sm font-medium text-dark">张老师</span>
                    <i class="fa fa-angle-down text-muted"></i>
                </div>
                <button class="md:hidden p-2 text-muted hover:text-primary transition-colors" id="mobile-menu-button">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="flex-grow flex">
        <!-- 左侧导航栏 -->
        <aside id="sidebar" class="w-64 bg-sidebar-bg shadow-sidebar transition-all duration-300 h-[calc(100vh-64px)] sticky top-[64px] overflow-y-auto">
            <!-- 考试管理菜单 -->
            <div class="p-4 border-b border-gray-200">
                <h3 class="text-lg font-bold text-center text-muted uppercase tracking-wider">考试管理</h3>
            </div>
            <div class="p-2">
                <a href="ExamManagement.html" class="sidebar-item">
                    <i class="fa fa-calendar"></i>
                    <span>考试安排</span>
                </a>
                <a href="ExamPaperManagement.html" class="sidebar-item">
                    <i class="fa fa-file-text-o"></i>
                    <span>试卷管理</span>
                </a>
                <div class="sidebar-item active">
                    <i class="fa fa-plus-circle"></i>
                    <span>创建试卷</span>
                </div>
                <a href="StudentManagement.html" class="sidebar-item">
                    <i class="fa fa-users"></i>
                    <span>考生管理</span>
                </a>
                <a href="GradeManagement.html" class="sidebar-item">
                    <i class="fa fa-check-square-o"></i>
                    <span>成绩管理</span>
                </a>
            </div>
        </aside>

        <!-- 内容区域 -->
        <div class="flex-grow p-6">
            <!-- 页面标题 -->
            <div class="mb-8">
                <div class="flex items-center justify-between">
                    <div>
                        <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-dark">创建试卷</h2>
                        <p class="text-muted mt-2">创建新的考试试卷，设置题目和考试规则</p>
                    </div>
                    <div class="flex space-x-3">
                        <button class="px-4 py-2 bg-white border border-gray-300 text-dark rounded-lg shadow-sm hover:bg-gray-50 transition-colors">
                            <i class="fa fa-save mr-2"></i>保存草稿
                        </button>
                        <button class="px-4 py-2 bg-primary text-white rounded-lg shadow-sm hover:bg-primary/90 transition-colors">
                            <i class="fa fa-check mr-2"></i>发布试卷
                        </button>
                    </div>
                </div>
            </div>

            <!-- 试卷创建表单 -->
            <div class="space-y-6">
                <!-- 基本信息 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-info-circle text-primary mr-2"></i>基本信息
                    </h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">试卷名称 *</label>
                            <input type="text" placeholder="请输入试卷名称" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">科目 *</label>
                            <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                <option>请选择科目</option>
                                <option>数学</option>
                                <option>语文</option>
                                <option>英语</option>
                                <option>物理</option>
                                <option>化学</option>
                                <option>生物</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">年级 *</label>
                            <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                <option>请选择年级</option>
                                <option>小学一年级</option>
                                <option>小学二年级</option>
                                <option>小学三年级</option>
                                <option>小学四年级</option>
                                <option>小学五年级</option>
                                <option>小学六年级</option>
                                <option>初中一年级</option>
                                <option>初中二年级</option>
                                <option>初中三年级</option>
                                <option>高中一年级</option>
                                <option>高中二年级</option>
                                <option>高中三年级</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">试卷类型</label>
                            <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                <option>期中考试</option>
                                <option>期末考试</option>
                                <option>单元测试</option>
                                <option>模拟考试</option>
                                <option>随堂测验</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">总分 *</label>
                            <input type="number" placeholder="100" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">考试时长 *</label>
                            <input type="number" placeholder="120" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div class="md:col-span-2">
                            <label class="block text-sm font-medium text-muted mb-1">试卷描述</label>
                            <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50" rows="3" placeholder="请输入试卷描述..."></textarea>
                        </div>
                    </div>
                </div>

                <!-- 考试设置 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-cog text-primary mr-2"></i>考试设置
                    </h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">开始时间</label>
                            <input type="datetime-local" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">结束时间</label>
                            <input type="datetime-local" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">及格分数</label>
                            <input type="number" placeholder="60" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">最大重考次数</label>
                            <input type="number" placeholder="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div class="md:col-span-2">
                            <label class="block text-sm font-medium text-muted mb-3">考试规则</label>
                            <div class="space-y-3">
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">允许查看答案</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">显示正确答案</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">随机题目顺序</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">防作弊模式</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">自动提交</span>
                                </label>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 题目选择 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-list text-primary mr-2"></i>题目选择
                    </h3>
                    
                    <div class="mb-6">
                        <div class="flex items-center justify-between mb-4">
                            <h4 class="text-md font-medium text-dark">选择题型</h4>
                            <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
                                <i class="fa fa-plus mr-2"></i>添加题目
                            </button>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                            <div class="border border-gray-200 rounded-lg p-4">
                                <div class="flex items-center justify-between mb-2">
                                    <h5 class="text-sm font-medium text-dark">选择题</h5>
                                    <span class="text-xs text-muted">已选: 15题</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <input type="number" placeholder="0" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm">
                                    <span class="text-sm text-muted">题</span>
                                    <span class="text-sm text-muted">×</span>
                                    <input type="number" placeholder="5" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm">
                                    <span class="text-sm text-muted">分</span>
                                </div>
                            </div>
                            
                            <div class="border border-gray-200 rounded-lg p-4">
                                <div class="flex items-center justify-between mb-2">
                                    <h5 class="text-sm font-medium text-dark">填空题</h5>
                                    <span class="text-xs text-muted">已选: 8题</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <input type="number" placeholder="0" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm">
                                    <span class="text-sm text-muted">题</span>
                                    <span class="text-sm text-muted">×</span>
                                    <input type="number" placeholder="10" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm">
                                    <span class="text-sm text-muted">分</span>
                                </div>
                            </div>
                            
                            <div class="border border-gray-200 rounded-lg p-4">
                                <div class="flex items-center justify-between mb-2">
                                    <h5 class="text-sm font-medium text-dark">解答题</h5>
                                    <span class="text-xs text-muted">已选: 3题</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <input type="number" placeholder="0" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm">
                                    <span class="text-sm text-muted">题</span>
                                    <span class="text-sm text-muted">×</span>
                                    <input type="number" placeholder="20" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm">
                                    <span class="text-sm text-muted">分</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="border-t border-gray-200 pt-6">
                        <h4 class="text-md font-medium text-dark mb-4">题目列表</h4>
                        <div class="space-y-3">
                            <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                                <div class="flex items-center space-x-3">
                                    <span class="text-sm font-medium text-dark">1.</span>
                                    <span class="text-sm text-muted">已知函数 f(x) = x² + 2x + 1，求 f(3) 的值。</span>
                                    <span class="px-2 py-1 text-xs bg-blue-100 text-blue-800 rounded">选择题</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <span class="text-sm text-muted">5分</span>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-times"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                                <div class="flex items-center space-x-3">
                                    <span class="text-sm font-medium text-dark">2.</span>
                                    <span class="text-sm text-muted">解方程：2x + 5 = 13</span>
                                    <span class="px-2 py-1 text-xs bg-green-100 text-green-800 rounded">填空题</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <span class="text-sm text-muted">10分</span>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-times"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                                <div class="flex items-center space-x-3">
                                    <span class="text-sm font-medium text-dark">3.</span>
                                    <span class="text-sm text-muted">证明：对于任意实数 a, b，都有 (a+b)² ≥ 4ab</span>
                                    <span class="px-2 py-1 text-xs bg-yellow-100 text-yellow-800 rounded">解答题</span>
                                </div>
                                <div class="flex items-center space-x-2">
                                    <span class="text-sm text-muted">20分</span>
                                    <button class="text-red-500 hover:text-red-600">
                                        <i class="fa fa-times"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
</div>

<!-- 引入公共样式和脚本 -->
<link rel="stylesheet" href="../css/admin-styles.css">
<script src="../js/admin-scripts.js"></script>
</body>
</html> 